<template>
  <div>
    <cascade-choice
        :item-name="'地区'"
        :phd-text="'请选择地区'"
        @callBackParent="callBackParent"/>
  </div>
</template>
<script>
import CascadeChoice from "../../components/CascadeChoice";

export default {
  name: 'Home',
  data() {
    return {
      // 定义城市变量值
      cityValue: ''
    }
  },
  components: {CascadeChoice},
  methods: {

    //父组件接收子组件回传的参数值
    callBackParent(obj) {
      console.log("obj", obj)
      this.cityValue = obj
    }
  }
}
</script>
